package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "register_auto")
public class RegisterAuto implements Serializable {
    @Id
    private Long id;

    private Integer count;

    private String password;

    private Long phone;

    @Column(name = "isFriend")
    private Integer isfriend;

    @Column(name = "isNewGroup")
    private Integer isnewgroup;

    @Column(name = "groupId")
    private Integer groupid;

    private Date ctime;

    private String result;

    private static final long serialVersionUID = 1L;

    public RegisterAuto(Long id, Integer count, String password, Long phone, Integer isfriend, Integer isnewgroup, Integer groupid, Date ctime, String result) {
        this.id = id;
        this.count = count;
        this.password = password;
        this.phone = phone;
        this.isfriend = isfriend;
        this.isnewgroup = isnewgroup;
        this.groupid = groupid;
        this.ctime = ctime;
        this.result = result;
    }

    public RegisterAuto() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return count
     */
    public Integer getCount() {
        return count;
    }

    /**
     * @param count
     */
    public void setCount(Integer count) {
        this.count = count;
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * @return phone
     */
    public Long getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(Long phone) {
        this.phone = phone;
    }

    /**
     * @return isFriend
     */
    public Integer getIsfriend() {
        return isfriend;
    }

    /**
     * @param isfriend
     */
    public void setIsfriend(Integer isfriend) {
        this.isfriend = isfriend;
    }

    /**
     * @return isNewGroup
     */
    public Integer getIsnewgroup() {
        return isnewgroup;
    }

    /**
     * @param isnewgroup
     */
    public void setIsnewgroup(Integer isnewgroup) {
        this.isnewgroup = isnewgroup;
    }

    /**
     * @return groupId
     */
    public Integer getGroupid() {
        return groupid;
    }

    /**
     * @param groupid
     */
    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    /**
     * @return ctime
     */
    public Date getCtime() {
        return ctime;
    }

    /**
     * @param ctime
     */
    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    /**
     * @return result
     */
    public String getResult() {
        return result;
    }

    /**
     * @param result
     */
    public void setResult(String result) {
        this.result = result == null ? null : result.trim();
    }
}